package pzl.mn.practice;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import pzl.mn.practice.dyn_proxy._START_dynProxy;
import pzl.mn.practice.glide.GlideActivity;
import pzl.mn.practice.live_data.LiveDataActivity;
import pzl.mn.practice.okhttp.OkhttpActivity;
import pzl.mn.practice.retrofit.RetrofitActivity;


public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


    }


    public void click(View view) {
        int id = view.getId();
        Intent intent = new Intent();
        switch (id) {
            case R.id.btnLiveData:
                intent.setClass(this, LiveDataActivity.class);
                startActivity(intent);
                break;
            case R.id.btnDynProxy:
                _START_dynProxy.mian();
                break;
            case R.id.btnOkhttp:
                intent.setClass(this, OkhttpActivity.class);
                startActivity(intent);
                break;
            case R.id.btnRetrofit:
                intent.setClass(this, RetrofitActivity.class);
                startActivity(intent);
                break;
            case R.id.btnGlide:
                intent.setClass(this, GlideActivity.class);
                startActivity(intent);
                break;
        }

    }


}
